<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>QQListener: D:/MyProgramme/VC++/QQListener/lanlist.cpp文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- 制作者 Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>首页</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>D:/MyProgramme/VC++/QQListener/lanlist.cpp文件参考</h1>这个文件包含了列出主机列表的功能函数  
<a href="#_details">更多...</a>
<p>
<code>#include &lt;stdio.h&gt;</code><br>
<code>#include &lt;windows.h&gt;</code><br>
<code>#include &lt;Iphlpapi.h&gt;</code><br>
<code>#include &quot;<a class="el" href="lanlist_8h_source.html">lanlist.h</a>&quot;</code><br>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>函数</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a9fb8fd7f168b12e78133c129341042c"></a><!-- doxytag: member="lanlist.cpp::thread_get_host" ref="a9fb8fd7f168b12e78133c129341042c" args="(LPVOID lparam)" -->
DWORD WINAPI&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="lanlist_8cpp.html#a9fb8fd7f168b12e78133c129341042c">thread_get_host</a> (LPVOID lparam)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">这是获得arp的线程 <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8dba6fe142acd1712199ca58f3c390fd"></a><!-- doxytag: member="lanlist.cpp::get_lan_list" ref="8dba6fe142acd1712199ca58f3c390fd" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>get_lan_list</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ef9db6f3651dc51eba54cabc8ac97399"></a><!-- doxytag: member="lanlist.cpp::get_mac_from_ip" ref="ef9db6f3651dc51eba54cabc8ac97399" args="(IN char *sz_ip, OUT PBYTE bt_mac)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>get_mac_from_ip</b> (IN char *sz_ip, OUT PBYTE bt_mac)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="lanlist_8cpp.html#ea7dc656575b1e0f3aa00a3c2e48ecc9">add_to_list</a> (PIP_LIST p_list)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">将结构体添加至链表  <a href="#ea7dc656575b1e0f3aa00a3c2e48ecc9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d9429c78019005dc6e8e62a30166c64b"></a><!-- doxytag: member="lanlist.cpp::print_list" ref="d9429c78019005dc6e8e62a30166c64b" args="()" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="lanlist_8cpp.html#d9429c78019005dc6e8e62a30166c64b">print_list</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">打印出获得的主机地址 <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b33016ea2500d9858283da56b8c3989f"></a><!-- doxytag: member="lanlist.cpp::clean_list" ref="b33016ea2500d9858283da56b8c3989f" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="lanlist_8cpp.html#b33016ea2500d9858283da56b8c3989f">clean_list</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">清空链表 <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e7f3705c0be0d7ad28d46094b45fad31"></a><!-- doxytag: member="lanlist.cpp::sort_result" ref="e7f3705c0be0d7ad28d46094b45fad31" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="lanlist_8cpp.html#e7f3705c0be0d7ad28d46094b45fad31">sort_result</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">对结果进行排序 <br></td></tr>
<tr><td colspan="2"><br><h2>变量</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7f184643741eeb122b1841c807c5e09e"></a><!-- doxytag: member="lanlist.cpp::g_sz_gateway_ip" ref="7f184643741eeb122b1841c807c5e09e" args="[18]" -->
char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="lanlist_8cpp.html#7f184643741eeb122b1841c807c5e09e">g_sz_gateway_ip</a> [18]</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">网关IP <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b07d11207a92ea0d1626324cde88983d"></a><!-- doxytag: member="lanlist.cpp::g_sz_local_ip" ref="b07d11207a92ea0d1626324cde88983d" args="[18]" -->
char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="lanlist_8cpp.html#b07d11207a92ea0d1626324cde88983d">g_sz_local_ip</a> [18]</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">网关IP <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="65fde8b8db5a33ec05f7e109e54a1060"></a><!-- doxytag: member="lanlist.cpp::g_ip_list" ref="65fde8b8db5a33ec05f7e109e54a1060" args="" -->
PIP_LIST&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="lanlist_8cpp.html#65fde8b8db5a33ec05f7e109e54a1060">g_ip_list</a> = NULL</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">保存ip地址等信息的链表 <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9ae2f666b227f61a0fe7e6dbb7fcfc52"></a><!-- doxytag: member="lanlist.cpp::ca" ref="9ae2f666b227f61a0fe7e6dbb7fcfc52" args="" -->
CRITICAL_SECTION&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="lanlist_8cpp.html#9ae2f666b227f61a0fe7e6dbb7fcfc52">ca</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">临界区变量用于线程同步的 <br></td></tr>
</table>
<hr><h2>详细描述</h2>
这个文件包含了列出主机列表的功能函数 
<p>
<hr><h2>函数文档</h2>
<a class="anchor" name="ea7dc656575b1e0f3aa00a3c2e48ecc9"></a><!-- doxytag: member="lanlist.cpp::add_to_list" ref="ea7dc656575b1e0f3aa00a3c2e48ecc9" args="(PIP_LIST p_list)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void add_to_list           </td>
          <td>(</td>
          <td class="paramtype">PIP_LIST&nbsp;</td>
          <td class="paramname"> <em>p_list</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
将结构体添加至链表 
<p>
<dl compact><dt><b>参数:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>p_list</em>&nbsp;</td><td>要增加的结构体 </td></tr>
  </table>
</dl>

</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated at Wed Oct 7 12:50:14 2009 for QQListener by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>
